package design.a3_prototype;

public class ProtoTypeTest {

	public static void main(String[] args) throws CloneNotSupportedException {
		People people = new People("张三", 12, "学生");
		System.out.println(people.toString());
		People clone = (People) people.clone();
		clone.setId(13);
		clone.setName("李四");
		System.out.println(clone.toString());
	}

}
